﻿using Abp.AutoMapper;
using Paas.Core.Approvals.Entities;
using Paas.Core.Const.Enums.Approvals;
using Basefr.App.Dtos;
using Basefr.Runtime.Extensions;
using System.Collections.Generic;
using System.Linq;

namespace Paas.App.Interface.Approvals.Dtos
{
    [AutoMap(typeof(ApproveTemplate))]
    public class ApproveTemplateDto : DtoBase
    {
        public EnumApproveType Type { get; set; }
        public string TypeStr => Type.Description();


        public List<ApproveTemplateStepDto> Steps { get; set; }

        public string StepsStr => string.Join(" >> ", Steps?.Select(p => p.Name) ?? new List<string>());


    }
}

